package org.apache.jsp.dsoframer;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class testOfficeOnline_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>OFFICEONLINE</title>\r\n");
      out.write("<script type=\"text/javascript\" language=\"javascript\" src=\"testOfficeOnline.js\"></script>\r\n");
      out.write("<LINK href=\"test.css\" type=text/css rel=stylesheet>\r\n");
      out.write("</head>\r\n");
      out.write("<body onbeforeunload=\"beforeLoad();\" onunload=\"UnLoad();\">\r\n");
      out.write("<TABLE class=TBStyle height=\"100%\" cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
      out.write("\t  <TBODY>\r\n");
      out.write("\t  \t<TR>\r\n");
      out.write("\t    \t<TD class=TDTitleStyle align=right></TD>\r\n");
      out.write("\t \t</TR>\r\n");
      out.write("\t  \t<TR height=\"90%\">\r\n");
      out.write("\t   \t\t<TD class=TDTitleStyle vAlign=top align=right width = \"10%\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"打开本地文档\" onClick=\"return openDoc();\"></br>\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"新建文档\" onClick=\"return newDoc();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"新建word\" onClick=\"return openWord();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"新建Excel\" onClick=\"return openExcel();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"新建PPT\" onClick=\"return openPPT();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"新建Visio\" onClick=\"return openVisio();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"保存文档\" onClick=\"return saveCopyDoc();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"关闭文档\" onClick=\"return closeDoc();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"打开服务器上的文档\" onClick=\"return openServerFile();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"保存到服务器\" onClick=\"return saveFileToServer();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"打印设置\" onClick=\"return printDes();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"打印\" onClick=\"return print();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"打印预览\" onClick=\"return prePrint();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"退出打印预览\" onClick=\"return prePrintExit();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"文件属性\" onClick=\"return attribute();\">\r\n");
      out.write("\t\t\t\t<input type=\"button\" value=\"文件是否保存\" onClick=\"return isSave();\">\r\n");
      out.write("\t\t\t\t<input type = \"button\" value=\"ddd\" onClick=\"return aa();\">\r\n");
      out.write("\t    \t</TD>\r\n");
      out.write("\t\t    <TD class=TDStyle width=\"90%\" height=\"100%\">\r\n");
      out.write("\t\t    \t<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0 height=\"100%\">\r\n");
      out.write("\t\t        \t<TBODY>\r\n");
      out.write("\t\t\t\t    \t<TR>\r\n");
      out.write("\t\t\t\t      \t\t<TD bgColor=menu height=\"100%\">\r\n");
      out.write("\t\t\t\t       \t    \t<object  classid=\"clsid:00460182-9E5E-11d5-B7C8-B8269041DD57\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tcodeBase=\"dsoframer.ocx#version=2,3,0,1\" id=\"oframe\" name=\"oframe\" width=\"100%\" height=\"600\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"BorderStyle\" value=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"TitlebarColor\" value=\"52479\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"Titlebar\" value=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"TitlebarTextColor\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"Menubar\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<param name=\"Toolbars\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t</object>\r\n");
      out.write("\t\t\t\t    \t\t</TD>\r\n");
      out.write("\t\t\t\t   \t\t </TR>\r\n");
      out.write("\t\t       \t\t </TBODY>\r\n");
      out.write("\t\t      \t</TABLE>\r\n");
      out.write("\t\t    </TD>\r\n");
      out.write("\t \t </TR>\r\n");
      out.write("\t</TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<!--div id = \"right\" algin = \"right\">\r\n");
      out.write("\t<table width=\"100%\" height=\"95%\" cellpadding=\"0\" cellspacing=\"0\"\r\n");
      out.write("\t\tborder=\"0\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td valign=\"top\" width=\"100%\">\r\n");
      out.write("\t\t\t\t<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"\r\n");
      out.write("\t\t\t\t\tborder=\"0\">\r\n");
      out.write("\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t<td valign=\"top\"><object\r\n");
      out.write("\t\t\t\t\t\t\t\tclassid=\"clsid:00460182-9E5E-11d5-B7C8-B8269041DD57\"\r\n");
      out.write("\t\t\t\t\t\t\t\tcodeBase=\"dsoframer.cab\" id=\"oframe\" name=\"oframe\" width=\"500px\"\r\n");
      out.write("\t\t\t\t\t\t\t\theight=\"500px\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"BorderStyle\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"TitlebarColor\" value=\"52479\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Titlebar\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"TitlebarTextColor\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Menubar\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Toolbars\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t</object>\r\n");
      out.write("\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t</table>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("</div-->\r\n");
      out.write("\t\r\n");
      out.write("\t<form action=\"../upLoadFile\" name=\"fileForm\" method=\"post\" enctype=\"multipart/form-data\" style=\"display:none\">\r\n");
      out.write("\t\t<input type=\"file\" name=\"file\" id=\"file\" value=\"c:\\\\dsoframer.ocx\">\r\n");
      out.write("\t\t<input type=\"submit\" value=\"submit\">\r\n");
      out.write("\t</form>\r\n");
      out.write("</body>\r\n");
      out.write("<script type=\"text/javascript\" language=\"javascript\">\r\n");
      out.write("\tvar dsoFrame = document.all.oframe; \r\n");
      out.write("\tvar MAP_C_SERVER_URL = \r\n");
      out.write("\t\t(function getServerUrl() {\r\n");
      out.write("\t\t\tvar path = document.location.protocol + '//' + \r\n");
      out.write("\t\t\t\t\t   document.location.host + \r\n");
      out.write("\t\t\t\t\t   document.location.pathname.substring(0,\n");
      out.write("\t\t\t\t\t   document.location.pathname.lastIndexOf(\"/\"));\r\n");
      out.write("\t\t\treturn path; })(); \r\n");
      out.write("\tvar docType; // 0 word 1 excel 2 ppt\n");
      out.write("</script>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
